//
//  UIButton+RWAdditions.h
//  Alumna
//
//  Created by ray on 2021/11/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

/// UIButton倒计时
@interface UIButton (XYTimer)

/// UIButton开启倒计时
/// @param totalTime 倒计时总时间
/// @param title 还没倒计时的title
/// @param prefix 倒计时,显示的前缀名
/// @param suffix 倒计时,显示的后缀名
/// @param mainColor 没有倒计时titleColor
/// @param countColor 倒计时titleColor
- (void)rw_startWithTime:(NSInteger)totalTime
                   title:(NSString *)title
                  prefix:(NSString *)prefix
                  suffix:(NSString *)suffix
                   color:(UIColor *)mainColor
              countColor:(UIColor *)countColor;

@end

@interface UIButton (RWAdditions)

@end

NS_ASSUME_NONNULL_END
